<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title><%= @title %></title>
    <%= stylesheet_link_tag 'blueprint/blueprint/screen.css' %>
    <%= stylesheet_link_tag 'blueprint/blueprint/print.css', :media => 'print' %>
    <%= stylesheet_link_tag 'application' %>
    <%= stylesheet_link_tag 'theme/ui.all.css' %>

    <!--[if IE]>
    <%= stylesheet_link_tag 'blueprint/blueprint/ie' %>
    <![endif]-->
    <%= javascript_include_tag :defaults %>
    <%= javascript_include_tag 'ui.datepicker.js' %>
  </head>
    <body>
      <div id="top_menu"><span class="text">Welcome, <%= current_user.login %> | <%= link_to('users', project_users_url(@project || 'all')) if current_user.is_admin? %> | <%= link_to 'Logout', :controller => 'account', :action => 'logout' %>  </span></div>
  	<div  class="container">
	<h1><%= @main_header %></h1>
	<div class='column span-18 last' id='tab-set'>
	  <%= generate_top_menu_2(controller.controller_name, @project) %>
	</div>
	<div  class='column span-6 last' id='search'>
	  <% form_tag({:controller => 'search'}, :method => 'get' ) do -%>
	  <%= text_field_tag 'q', 'Search...', :class => 'search', :id => 'search_input', :onclick => "this.value = ''" %>
	  <% end -%>
	</div>
		<br /><br /><br />
		<div>
			<div style="font-size:12px; color:red; text-align:center; ">
				<%= flash[:notice] %>
			</div>
		<%= yield %>
		</div>

	</div>
    </body>
</html>
